<ion-view view-title="修改密码" cache-view="false">
<ion-content class="login-background">
    <form name="changePwdForm">
            <div class="list changePwd">
              <label class="item item-input">
                <input type="password" placeholder="输入原始密码" ng-model="user.oldPwd" ng-pattern="/(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{2,})$/" ng-minlength="6" ng-maxlength="12"  required>
              </label>
                <label class="item item-input">
                    <input type="password" placeholder="输入新密码" ng-pattern="/(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{2,})$/" ng-model="user.newPwd" ng-minlength="6" ng-maxlength="12" required>
                </label>
                <label class="item item-input">
                <input type="password" placeholder="确认新密码" ng-model="user.newPwdSecond" ng-pattern="/(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{2,})$/" ng-minlength="6" ng-maxlength="12" required>
              </label>
            </div>
    </form>
    <p class="changePwdInfo">为了您的数据安全，请将密码设置为6位或以上的数字加字母的组合</p>

    <div class="list list-inset">
        <button ng-disabled="changePwdForm.$invalid" class="button button-block next-btn" ng-class="{true:'button-unactive',false:'button-balanced'}[changePwdForm.$invalid]" ng-click="changePwd(user)">
            完成
        </button>
    </div>
</ion-content>
</ion-view>